package com.lzy.annotation;

import java.lang.annotation.*;

/**
 * @author lyw
 * @Date 2023/2/16-上午11:57
 */
@Target({ElementType.METHOD, ElementType.TYPE}) // 作用到方法上
@Retention(RetentionPolicy.RUNTIME) // 运行时有效
@Inherited
@Documented
public @interface AuthCheck {
  String hasRole() default "";

  String[] hasAnyRole() default {};

  String hasAuthority() default "";

  String[] hasAnyAuthority() default {};
}
